﻿@using WebApp.Models
@using WebApp.Extensions
@using Telerik.Web.Mvc.UI
@model ENT_Tavolo
<table class="edit">
    <tr>
        <td>Nome del tavolo @Html.ValidationMessageFor(x => x.Nome)
        </td>
        <td class="value">
            @Html.TextBoxFor(x => x.Nome)
        </td>
    </tr>
    <tr>
        <td>Prezzo del coperto @Html.ValidationMessageFor(x => x.Coperto)
        </td>
        <td class="value">
            @Html.Telerik().CurrencyTextBoxFor(x => x.Coperto)</td>
    </tr>
    <tr>
        <td>Coperto unico @Html.ValidationMessageFor(x => x.CopertoUnico)
        </td>
        <td class="value">
            @(Html.Telerik().DropDownListFor(x => x.CopertoUnico).BindTo(SelectListHandler.SiNoEredita(Model.CopertoUnico)))
        </td>
    </tr>
    <tr>
        <td>Disponibile @Html.ValidationMessageFor(x => x.Disponibile)
        </td>
        <td class="value">
            @(Html.Telerik().DropDownListFor(x => x.Disponibile).BindTo(SelectListHandler.SiNo(Model.Disponibile)))

        </td>
    </tr>
    <tr>
        <td>Numero di posti @Html.ValidationMessageFor(x => x.Posti)
        </td>
        <td class="value">
            @Html.Telerik().IntegerTextBoxFor(x => x.Posti)
        </td>
    </tr>
</table>
